import { request } from "../utils/request";

export function getSwiperAPI() {
    return request({
        url: '/home/swiper',
        method: 'GET'
    })
}

export function getGroupAPI() {
    return request({
        url: '/home/groups',
        method: 'GET',
        params: {
            area: 'AREA|e4940177-c04c-383d'
        }
    })
}

export function getNewsAPI() {
    return request({
        url: '/home/news',
        method: 'GET',
        params: {
            area: 'AREA|e4940177-c04c-383d'
        }
    })
}

export function getAreaInfoAPI(name) {
    return request({
        url: '/area/info',
        method: 'GET',
        params: {
            name
        }
    })
}